package com.zhang.springbootdemo.controller;

import com.zhang.springbootdemo.pojo.Employee;
import com.zhang.springbootdemo.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.jws.Oneway;
import java.util.List;

/**
 * @author Alger
 * @date 2021/7/26  16:46
 */
@RestController
@RequestMapping("/test")
public class EmployeeController2 {
    @Autowired
    public EmployeeService employeeService;
    @RequestMapping("/sels")
    public List test(Employee employee){
        return employeeService.selEmps(employee);
    }
}
